package com.java1412.controller.admin;

import com.java1412.service.PayInfoService;
import com.java1412.utils.ResponseUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author java1412
 * @since 2023-08-11 15:36:44
 */
@RestController
@RequestMapping(value = "/admin/payInfo")
public class AdminPayInfoController {
    @Resource
    private PayInfoService payInfoService;

    @GetMapping(value = "/find")
    public ResponseUtil find(
            // 第几页
            @RequestParam(value = "currentPage", required = false, defaultValue = "1") Integer currentPage,
            // 页大小
            @RequestParam(value = "pageSize", required = false, defaultValue = "2") Integer pageSize
    ) {
        ResponseUtil r = payInfoService.find(currentPage, pageSize);
        return r;
    }
}
